<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href='css/bootstrap.css' rel='stylesheet' type='text/css' />
<link href='css/main.css' rel='stylesheet' type='text/css' />
<script src="js/jquery-1.8.3.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<title>Soft-food</title>
</head>
<body>
	
    <div class="container span12 centralizado">
	    <div class="row">
	    	
	    </div>
	    <div class="row">
	    	<div class="span5">
	    		<div id="titulo">
	    			<h2>Soft-food <br> <span class="lead">Software para empresas de Fast-Food</span></h2>
	    		</div>
	    	</div>
			<div class="span7">
			    <div class="navbar pull-right">
			    	<ul class="nav">
			    		<li><a href="index.php">Início</a></li>
			    		<li><a href="index.php?p=produtos">Produtos</a></li>
			    		<li><a href="index.php?p=locais">Locais de Compras</a></li>
			    		<li><a href="">Contato</a></li>
			    		<li><a href="index.php?p=login">Login</a></li>
			    	</ul>
			    </div>
			</div>
	    </div>
    	
    <div class="row">
    	<div class="span12">
    	<?php 
				if(isset($_GET['p'])){
					$op = $_GET['p'];
					switch($op){
						case 'login':
							include "paginas/FormLogin.php";
							break;
									
						case 'home':
							include "paginas/Home.php";
							break;
						
						case 'produtos':
							include "paginas/PgProdutos.php";
							break;
						
						case "addproduto":
							include "paginas/PgAddProduto.php";
							break;
						
						case 'locais':
							include "paginas/PgLocalCompra.php";
							break;
							
						case "addlocal":
							include "paginas/PgAddLocal.php";
							break;
							
						default:
							include "paginas/Home.php";
							break;
					}
				}
				else{
					include_once "paginas/home.php";
				}
			?>
			</div>
	</div>
	<div class="footer">
		<h5>Copyright &copy; <?php echo date('Y');?> </h5>
	</div>
	</div>
	
	<script type="text/javascript">$('.carousel').carousel();</script>
</body>
    
</html>